package com.bw.service;

import com.bw.dao.MovieDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class MovieServiceImp implements MovieService{
    @Autowired
    MovieDao movieDao;
    @Override
    public List<Map> find() {
        return movieDao.find();
    }

    @Override
    public List<Map> findName() {
        return movieDao.findName();
    }

    @Override
    public List<Map> findLike(String name) {
        return movieDao.findLike(name);
    }

    @Override
    public List<Map> findLikeName(String name) {
        return movieDao.findLikeName(name);
    }

    @Override
    public List<Map> findTime(String start, String end) {
        return movieDao.findTime(start, end);
    }
}
